package dk.dashboardFP.panels.introspectionPanel {
	import dk.dashboardFP.utils.describeObjectUtil.ObjectDescription;

	/**
	 * @author josef
	 */
	public class IntrospectionNode {
		private var _a_oSubNodes : Array;
		private var _sValue : String;
		private var _sIndex : String = "";
		private var _intDepth : int;
		private var _objectDescription : ObjectDescription;

		public function IntrospectionNode(intDepth:int, od:ObjectDescription) {
			_objectDescription=od;
			_intDepth = intDepth;
		}

		public function addSubNode(oNode:IntrospectionNode) : void {
			
			if(!oNode) return;
			
			if (!_a_oSubNodes) {
				_a_oSubNodes=[];
			}
			
			_a_oSubNodes[_a_oSubNodes.length] = oNode;
		}
		
		public function get sIndex() : String { 
			return _sIndex; 
		}
		
		public function set sIndex(oNewValue:String) : void { 
			_sIndex=oNewValue;
		}

		public function get a_oSubNodes() : Array {
			return _a_oSubNodes;
		}
		
		public function get sValue() : String {
			return _sValue;
		}
		
		public function set sValue(sValue : String) : void {
			_sValue = sValue;
		}
		
		public function get depth() : int {
			return _intDepth;
		}
		
		public function get objectDescription() : ObjectDescription {
			return _objectDescription;
		}
	}
}
